package com.zecan.blog.service;

import com.zecan.blog.dto.comment.ReplyCommentDto;
import com.zecan.blog.entity.Comment;
import com.zecan.blog.vo.comment.CommentVo;

import java.util.List;

/**
 * @ClassName CommentService
 * @Description
 * @date 2022/11/11 11:32
 * @Version 1.0
 */

public interface CommentService {

    /**
     * 获取文章评论信息
     * @param articleId 文章id
     * @return
     */
    List<CommentVo> getArticleCommentList(Integer articleId);


    /**
     * 添加评论 or  子级回复
     * @param replyCommentDto
     */
    void sendComment(ReplyCommentDto replyCommentDto);


    void delComment(Integer commentId);

    List<CommentVo> getCommentList(Integer offset ,Integer limit);

}
